blob: c1c44ab968a3879d763ffdcd80cf10bebe10064c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import { fd, get} from "$lib/utils";
import { decodePaymentRequest } from "@cashu/cashu-ts";
export async function load({ params }) {
const req = { ...decodePaymentRequest(params.request) };
const { target } = req.transport[0];
const recipient = await get(`/profile/${target}`);
return { req, recipient };
}
export const actions = {
setAmount: async ({ request }) => {
return await fd(request);
},
};
|